Fix missing Optional type hint in config.py#795
Conversation
RF-DETR PyTorch Lightning Migration 1/2
updates: - [github.com/astral-sh/ruff-pre-commit: v0.15.4 → v0.15.5](astral-sh/ruff-pre-commit@v0.15.4...v0.15.5) - [github.com/codespell-project/codespell: v2.4.1 → v2.4.2](codespell-project/codespell@v2.4.1...v2.4.2) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
|
@sjhddh seems you started from wrong branch, pls read the contribution guide... So pls rebase |
ffaff06 to
af8e96f
Compare
|
@Borda I have rebased the PR onto the |
@sjhddh ^^ |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #795 +/- ##
======================================
Coverage 79% 79%
======================================
Files 97 97
Lines 7793 7793
======================================
Hits 6148 6148
Misses 1645 1645 🚀 New features to boost your workflow:
|
|
Just pinging on this! The PR has been updated and rebased onto |
@sjhddh it is not updated yet, so can you pls share print-screen 🐰 |
|
@sjhddh, friendly ping, do you think you will have a chance to finish this one? 🦝 |
|
@Borda Yes, definitely want to get this finished! 🙋 Regarding the CLA — I've signed it via the CLA assistant link. The status might be stale. Let me trigger a recheck. If there's anything else needed on the code side, happy to update. The change itself is minimal (adding the missing |
all green now, perfect! |
There was a problem hiding this comment.
Pull request overview
This PR fixes a typing mismatch in the training configuration model by making class_names explicitly nullable, aligning the type hint with its None default and preventing type-checker errors.
Changes:
- Updated
TrainConfig.class_namesfromList[str]toOptional[List[str]]while keeping the default asNone.
Changed
class_names: List[str] = Nonetoclass_names: Optional[List[str]] = Noneinrfdetr/config.pyto fix type checker error.Automated PR created by OpenClaw daily-pr routine (Backlog queue).